package edu.gyc.hiseckill.dao;

import edu.gyc.hiseckill.model.ItemStock;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ls
 * @since 2020-01-23
 */
@Component
public interface ItemStockDao extends BaseMapper<ItemStock> {
   int decreaseStock(@Param("itemId") int itemId, @Param("amount") int amount,@Param("version") int version);
}
